* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  background: #f4f4f9;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.container {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2d3436;
}

.balance {
  text-align: center;
  margin-bottom: 20px;
}

#balance {
  font-size: 2rem;
  color: #2d3436;
  margin-top: 10px;
}

.summary {
  display: flex;
  justify-content: space-between;
  background: #fafafa;
  border-radius: 8px;
  padding: 10px 20px;
  margin-bottom: 30px;
  border: 1px solid #ddd;
}

.summary div {
  text-align: center;
}

.income p {
  color: #27ae60;
  font-weight: bold;
}

.expense p {
  color: #c0392b;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

form input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: #0984e3;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #74b9ff;
}

.list {
  list-style-type: none;
  margin-top: 10px;
}

.list li {
  background: #f9f9f9;
  border-left: 5px solid #2ecc71;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list li.expense {
  border-left-color: #e74c3c;
}

.list button {
  border: none;
  background: transparent;
  color: #e74c3c;
  font-weight: bold;
  cursor: pointer;
}

.list button:hover {
  color: #c0392b;
}
